Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

fix(other): fix currency formatting throughout app (#228) #229

Closed

Conversation

getsnoopy
Copy link

Currencies in English should always have symbols and codes precede the
amount, not follow them, so this commit fixes all such instances
throughout the app.

Description

The change fixes grammatical issues in the app.

Fixes #228

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR fix an open issue?

  • Yes
  • No

…#228)

Currencies in English should always have symbols and codes precede the
amount, not follow them, so this commit fixes all such instances
throughout the app.
@waldenraines
Copy link
Contributor

I'm not sure this is a desirable change. One could argue that the unit should be locale aware but 5 btc definitely makes more sense in the US than btc 5. I think the right thing to do here would be to display the number and unit based on the user's locale.

cc @bucko13 thoughts?

@getsnoopy
Copy link
Author

5 btc definitely makes more sense in the US than btc 5

It does not, as shown on this US GPO style guide. In fact, they're based on languages, and in English (regardless of locale/dialect), codes and symbols always precede the amount (e.g., $5 and USD 5, not 5$ and 5 USD).

@bucko13
Copy link
Contributor

bucko13 commented Dec 9, 2021

Yikes. Old. Sorry. I think we should probably establish a formatting guideline around a lot of things like this, regardless of where we end up and it should be made public in a document in the repo for any contributors. Absent that and since I could see an argument either way, I say we close for now until then.

@getsnoopy
Copy link
Author

@bucko13 That's fine, but the formatting document would just publicize the format that this PR is fixing anyway, since that's the proper way to format currencies in English, so why not just merge instead?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Currency codes should precede amounts
3 participants